import request from '@/utils/request'

export function login(data) {
	return request({
		url: '/employee/login',
		method: 'post',
		data
	})
}

export function logout() {
	return request({
		url: '/employee/empLogout',
		method: 'post'
	})
}

export function loadAll(data) {
	return request({
		url: '/user/findUser',
		method: 'post',
		data
	})
}

export function update(data) {
	return request({
		url: '/user/edit',
		method: 'post',
		data
	})
}

export function delUser(data) {
	return request({
		url: '/user/'+data,
		method: 'delete',
	})
}

export function delUsers(data) {
	return request({
		url: '/user/delMany',
		method: 'delete',
		data
	})
}
